package com.lucas.edu.controller;

import com.lucas.edu.annotation.Security;
import com.lucas.edu.service.DemoService;
import com.lucas.edu.annotation.Autowired;
import com.lucas.edu.annotation.Controller;
import com.lucas.edu.annotation.RequestMapping;

@Controller
@RequestMapping("/democontroller")
@Security({"lucas","zhangsan"})
public class demoController {
    @Autowired
    private DemoService demoService;

    @RequestMapping("/controllerHello")
    @Security({"lucas","zhangsan"})
    public String controllerHello(String name){
        String [] d  =new String[]{"1","2"};
        System.out.println(name);
        String hello = demoService.hello();
        return hello;
    }
}
